package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

// gulimall-member:  http://localhost:8000/member/member/coupons          =====>
//   gulimall-coupon :  http://localhost:7000/coupon/coupon/member/list

// 不能有下划线 _
// 这是一个声明式的远程调用
@FeignClient("gulimall-coupon") // nacos的服务名。======>  http://localhost:7000/
public interface CouponFeignService {

    @RequestMapping("/coupon/coupon/member/list") // 从gulimall-coupon 粘贴来的
    public R membercoupons();

}
